package com.example.api.service.impl;

import com.example.api.module.user.vo.UserVO;
import com.example.api.service.IUserFeignService;
import com.example.common.api.ResultCode;
import com.example.common.api.ResultUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class UserFailBack implements IUserFeignService {

    @Override
    public ResultUtil login(String account, String password) {
        log.info("module-user服务器异常");
        return ResultUtil.failed(ResultCode.FEIGN_ERROR);
    }

    @Override
    public ResultUtil createUser(UserVO userVO) {
        log.info("module-user服务器异常");
        return ResultUtil.failed(ResultCode.FEIGN_ERROR);
    }

    @Override
    public ResultUtil getUser(String mobile, String password) {
        log.info("module-user服务器异常");
        return ResultUtil.failed(ResultCode.FEIGN_ERROR);
    }
}
